<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
	function bijiao(arr){
		var c=0;
		for  (var i in arr){
			if(c<arr[i]){
				c=arr[i];
			}
			}
		return c;
	}



	var arr=[1,56,23,6,43,87,3,5,99];
	alert(bijiao(arr));


	</script>
		}
</body>
</html>